﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Conversion_Script
{
    class SandWatch
    {
        static float SimLength;
        const float Length = 40;
        public static void Initialize()
        {
            SimLength = (float)Settings.GetSimulationLength();
            string line = "|";
            for (int t = 1; t <= Length; t++)
            {
                if (t == 1 / 4F * Length  || t == 2 / 4F * Length|| t == 3 / 4F * Length)
                {
                    line +="|";
                }
                line+="-";
            }
            line += "|";
            System.Console.WriteLine(""); 
            System.Console.WriteLine(line);
            System.Console.Write("|");
        }
        static float c = 0;
        public static void Update()
        {
            c ++;
            if (c > SimLength / Length)
            {
                c=0;
                System.Console.Write("-");
            
            }
        }
    }
}
